home *** CD-ROM | disk | FTP | other *** search
- // LISTING 3
-
- #ifndef EXCEPTION_H
- #define EXCEPTION_H
-
- /*
- stype() and type() are the same function, the difference is
- that stype() can be called without an instance, like
- Exception::stype();
- */
-
- class Exception {
- public:
- static stype {return 0;}
- virtual type() {return 0;}
- virtual size() {return sizeof(Exception);}
- };
-
- #endif
-